package com.one.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.one.entity.Aqi;
import com.one.mapper.AqiMapper;
import com.one.service.IAqiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AqiServiceImpl implements IAqiService {

	@Autowired
	private AqiMapper aqiMapper;
	
	@Override
	public List<Aqi> listAqiAll() {
		QueryWrapper<Aqi> qw = new QueryWrapper<>();
		qw.orderByAsc("aqi_id");
		return aqiMapper.selectList(qw);
	}
}
